package cm.android.mytodoit.model;


public class TodoElement {
	
	public static final String TABLE_NAME = "todoit_todoElements";
	
	public static final String TC_ID = "id";
	public static final String TC_TITLE = "title";
	public static final String TC_DESCRIPTION = "description";
	public static final String TC_INITIALDATE = "initial_data";
	public static final String TC_EXPIRATIONDATE = "expiration_date";
	public static final String TC_PRIORITY = "priority";
	
	private int id;
	private String title;
	private String description;
	private String initialDate;
	private String expirationDate;
	private int priority;
	
	public static String getTabeCreateString() {
		
		String createString = "CREATE TABLE "+ TABLE_NAME + " ("+TC_ID+" INTEGER PRIMARY KEY AUTOINCREMENT,"
			+ TC_TITLE + " TEXT," + TC_DESCRIPTION + " TEXT," + TC_PRIORITY + " TEXT," + TC_INITIALDATE
			+ " TEXT,"+TC_EXPIRATIONDATE + " TEXT);";
		
		return createString;
	}
	

	
	@Override
	public String toString() {
		return this.title + " "+this.priority;
	}
	
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public String getDescription() {
		return description;
	}
	public void setDescription(String description) {
		this.description = description;
	}
	public String getInitialDate() {
		return initialDate;
	}
	public void setInitialDate(String initialDate) {
		this.initialDate = initialDate;
	}
	public String getExpirationDate() {
		return expirationDate;
	}
	public void setExpirationDate(String expirationDate) {
		this.expirationDate = expirationDate;
	}
	public int getPriority() {
		return priority;
	}
	public void setPriority(int priority) {
		this.priority = priority;
	}
	

}
